package com.erp.erp_project.service;

import com.erp.erp_project.model.Order;
import com.erp.erp_project.model.Product;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author the bright star
 */
public interface IProductService extends BaseService<Product>{


    Product getProductById(Integer id);

    void updatePic(Integer id, String data);

    void addProduct(Product product);

    void editProduct(Product product);

    void deleteProduct(List<Integer> list);

    List<Product> searchProduct(Integer type, String condition);

    void setNote(String note, Integer id);

    List<String> uploadPic(MultipartFile[] files, Integer id);
}
